#pragma once
#include "GameEntity.h"
#include "MovableGameEntity.h"
#include "BlockColor.h"
#include "Player.h"
#include "Power.h"

class Block : public GameEntity
{
public:
	Block(){};
	Block(short int myCol, short int myLin);
	static int BlockWidth(){return 50;};
	static int BlockHeight(){return 50;};
	int myIndex;//Range [1, 54] - closed interval
	void Update();
	BlockColor MyColor();

private:
	Power power;
	BlockColor myColor;
	void GetNextColor();
	void GetPreviewColor();
	void NextBlock();
	void PreviewBlock();
	bool IsCollidingWithPlayer(Player *player);

};
